<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="/include/head.jsp"%>
<script type="text/javascript">

$(document).ready(function(){
	$("#entityType",navTab.getCurrentPanel()).val("${pager.scMap.entityType}");
	$("#createById",navTab.getCurrentPanel()).val("${pager.scMap.createById}");
	
});
</script>
<div class="pageHeader">
	<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="msg/msgLogsPager.do" method="post">
		<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					发送类型:<select name="map.sendType" id="sendType">
								<option value="">全部</option>
							<c:forEach items="${Dict.getList('SMS_SEND_TYPE')}" var="item">
							<option value="${item.KEY}">${item.VALUE}</option>
							</c:forEach>
							</select>
					会员姓名:<input type="text" name="map.custName_L" value="${pager.scMap.custName_L}">
					接收号码:<input type="text" name="map.toCust_L" value="${pager.scMap.toCust_L}">
					
	       			发送时间起:<input type="text" name="map.updateDate_B" value="${pager.scMap.updateDate_B}" class="date textInput readonly" readonly="true" size="10">
	       			发送时间止:<input type="text" name="map.updateDate_E" value="${pager.scMap.updateDate_E}" class="date textInput readonly" readonly="true" size="10">
       			</td>
			</tr>
		</table>
  		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
		</div>
	</form>
</div>

<div class="panelBar">
	<ul class="toolBar"><!-- 
		<li><a class="add" href="user/user/toEdit/-99999999.do?funId=${funId}" target="navTab" rel="userEdit"><span>添加新用户</span></a></li> -->
		<li><a class="icon" href="demo/common/dwz-team.xls" target="w_list_print" targetType="navTab" title="确实要导出这些记录吗?"><span>导出EXCEL</span></a></li>
		<li><a class="icon" href="javascript:$.printBox('w_list_print')"><span>打印</span></a></li>
	</ul>
</div>

<div layoutH="116" id="w_list_print">
	<table class="table" width="98%" targetType="navTab" asc="asc" desc="desc">
		<thead>
			<tr>
				<th width="30">No.</th>
				<th width="65">发送类型</th>
				<th width="65">会员姓名</th>
				<th width="85">接收号码 </th>
				<th width="105">发送时间</th>
				<th width="65">发送人</th>
				<th width="75">发送状态</th>
				<th width="35">条数</th>
				<th>发送内容</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${pager.resultList}" var="item" varStatus="varStatus">
				<tr target="sid_${entity }" rel="${item.id}">
					<td align="right">${varStatus.count}</td>	
					<td>${Dict.getAlias('SMS_SEND_TYPE', item.msgType)}</td>	
					<td>${Dict.getAlias('CUSTOMER',item.custId)}</td>
					<td>${item.toNo}</td>				
					<td>${item.createDate}</td>						
					<td>${Dict.getAlias("USER",item.createById)}</td>			
					<td>${item.msgStatus}</td>		
					<td>${item.qty}</td>		
					<td>${item.msgText}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<jsp:include page="../include/pagerDiv.jsp" flush="true" />